<?php
require_once("include.php");
if (isset($_REQUEST['inputText'])) {    
$i = $_REQUEST['inputText'];
$arr = sqlreadarray("select itemid,name from work where name like '%$i%' LIMIT 30");
$h = "";
echo "<pre>";
  if ($arr) {
	foreach ($arr as $item) {  
echo $item[1]."\n";
}
  }
}
?>